<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>股票信息通知</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background-color: #f8f9fa;
            padding: 15px;
            border-bottom: 1px solid #e9ecef;
            text-align: center;
        }
        .content {
            padding: 20px 0;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #f2f2f2;
            font-weight: bold;
        }
        tr:hover {
            background-color: #f5f5f5;
        }
        .footer {
            margin-top: 30px;
            padding-top: 15px;
            border-top: 1px solid #e9ecef;
            font-size: 0.9em;
            color: #6c757d;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="header">
    <h2>股票信息通知</h2>
</div>

<div class="content">
    <p>尊敬的客户，您好！</p>
    <p>以下是您关注的股票最新进展信息：</p>

    <table>
        <thead>
        <tr>
            <th>代码</th>
            <th>名称</th>
            <th>方案进展</th>
            <th>进展公告日</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="stock : ${stocks}">
            <td th:text="${stock.stockCode}">000001</td>
            <td th:text="${stock.stockName}">示例</td>
            <td th:text="${stock.progressStatus} ?: '无'">方案通过</td>
            <td th:text="${#dates.format(stock.progressDate, 'yyyy-MM-dd')} ?: '无'">2023-01-01</td>
        </tr>
        </tbody>
    </table>

    <p>请注意，以上信息仅供参考，投资有风险，决策需谨慎。</p>
</div>

<div class="footer">
    <p>此为系统自动发送邮件，请勿直接回复</p>
    <p>© 2025 蓝界航标 版权所有</p>
</div>
</body>
</html>